Next | Prev | Up | Top | Contents | Index
Creating Additional Names in /dev/scsi
The script /dev/MAKEDEV, which runs each time the system boots, creates 16 files for each existing SCSI or jag bus. These files represent the possible SCSI ID numbers 0-15 on each bus, with a logical number of 0. If you want to control a device with LUN 0, the device special file exists.
In order to control a device with a LUN of 1-7, you must create an additional device special file, using the mknode or install command (see the install(1) reference page). For example, before you can operate logical unit 2 of device 5 on SCSI bus 1, you must create /dev/scsi/sc1d5l2 using a command such as
install -F /dev/scsi -m 600 -u root -g sys \
-chr 195,165 sc1d5l2
Next | Prev | Up | Top | Contents | Index